//////////////////////////////////////////////////////////////////////
////                                                              ////
////  Delay.v                                                     ////
////                                                              ////
////                                                              ////
////  This file is part of the "Pico E12" project                 ////
////  http://www.picocomputIng.com                                ////
////                                                              ////
////                                                              ////
//////////////////////////////////////////////////////////////////////
////                                                              ////
//// Copyright (C) 2005, Pico ComputIng, Inc.                     ////
//// http://www.picocomputIng.com/                                ////
////                                                              ////
//// This source file may be used and distributed withOut         ////
//// restriction provided that this copyright statement is not    ////
//// removed from the file and that any derivative work contaIns  ////
//// the origInal copyright notice and the associated disclaimer. ////
////                                                              ////
//// This source file is free software; you can redistribute it   ////
//// and/or modify it under the terms of the GNU Lesser General   ////
//// Public License as published by the Free Software Foundation; ////
//// either version 2.1 of the License, or (at your option) any   ////
//// later version.                                               ////
////                                                              ////
//// This source is distributed in the hope that it will be       ////
//// useful, but WITHOut ANY WARRANTY; withOut even the implied   ////
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
//// PURPOSE.  See the GNU Lesser General Public License for more ////
//// details.                                                     ////
////                                                              ////
//// You should have received a copy of the GNU Lesser General    ////
//// Public License along with this source; if not, download it   ////
//// from http://www.opencores.org/lgpl.shtml                     ////
////                                                              ////
////////////////////////////////////////////////////////////////////JF

`timescale 10ns / 1ns

//This module provides a falling edge delay of 10-15 nS when used with a 200 MHz Clock


module RisingAndFallingDelay(Clock, In, Out);

input Clock;
input In;
output Out;

reg DelayReg[2:0];
wire Out;

always @(posedge Clock) begin
   DelayReg[2] <= DelayReg[1];
	DelayReg[1] <= DelayReg[0];
	DelayReg[0] <= In;
end

assign Out = (DelayReg[2] || DelayReg[1]);
	
endmodule
